#冒泡排序
def mao_pao(alist):
    for i in range(len(alist)):
        for j in range(0,len(alist)-i-1):
            if alist[j] > alist[j+1]:
                alist[j],alist[j+1] = alist[j+1],alist[j]






alist = [54, 26, 93, 17, 77, 31, 44, 55, 88]
print(alist)
mao_pao(alist)
print(alist)